cmake_minimum_required(VERSION 3.22)
project(msg_encrypt)

set(CMAKE_CXX_STANDARD 20)

# 设置debug
set(CMAKE_BUILD_TYPE debug)

find_package(Protobuf)

#add_executable(msg_encrypt sodium.cpp test.pb.cc)
#target_link_libraries(msg_encrypt PRIVATE sodium  ${Protobuf_LIBRARIES})

#add_executable(msg_encrypt cryptopp.cpp test.pb.cc)
#target_link_libraries(msg_encrypt PRIVATE cryptopp  ${Protobuf_LIBRARIES})

#add_executable(msg_encrypt xro.cpp test.pb.cc)
#target_link_libraries(msg_encrypt PRIVATE ${Protobuf_LIBRARIES})

add_executable(msg_encrypt compress.cpp test.pb.cc)
target_link_libraries(msg_encrypt PRIVATE ${Protobuf_LIBRARIES} snappy)
